package com.mrdeer.iot.processor.impl;

import com.mrdeer.iot.bean.ChannelInfo;
import com.mrdeer.iot.bean.command.Protocol;
import com.mrdeer.iot.bean.enums.ERTUChannelFlag;
import com.mrdeer.iot.processor.IDataProcessor;
import com.mrdeer.iot.processor.ProcessorAbstract;
import io.netty.channel.ChannelHandlerContext;

/**
 * 模拟信号 处理器
 *
 * @Author: xie jianchu
 */
public class StatusProcessor extends ProcessorAbstract implements IDataProcessor {
    public StatusProcessor() {
        super(ERTUChannelFlag.STATUS);
    }

    @Override
    public void translate(ChannelHandlerContext ctx, ChannelInfo channelInfo, Protocol protocol) throws Exception {
        if (super.getNextProcessor() != null) {
            super.getNextProcessor().translate(ctx, channelInfo, protocol);
        }
    }
}
